<?php

// version 1.0.0

class PageModule extends CWebModule
{
    public function init()
    {
        $this->viewPath = Yii::getPathOfAlias('theme.views.modules.PageModule');
        $this->setImport(array(
                'page.models.*',
                'page.components.*',
        ));
    }

    public function beforeControllerAction($controller, $action)
    {
        if(parent::beforeControllerAction($controller, $action))
        {
            return true;
        }
        else
            return false;
    }
}